#ifndef CHOIXPG_H
#define CHOIXPG_H

#include <QWidget>
#include <QSqlDatabase>
#include <promsmodel.h>

#include <QKeyEvent>

namespace Ui {
class ChoixPg;
}

class ChoixPg : public QWidget
{
    Q_OBJECT

public:
    explicit ChoixPg(QWidget *parent = 0);
    ~ChoixPg();

public slots:
    void reset();

signals:
    void bucquer(int fams, QString proms);
    void finBucquage();

protected:
    void keyPressEvent(QKeyEvent * event);

private:
    Ui::ChoixPg *ui;
    QSqlDatabase db;
    PromsModel *model;
};

#endif // CHOIXPG_H
